package com.sumer.psychology.comment.domain.model;

import com.sumer.psychology.common.domain.model.Author;

/**
 * 创建对评论的评论
 * <p/>
 * User: zhenguang.zhu
 * Date: 2014/10/9
 * Time: 10:01
 */
public class CommentToCommentCreatedEvent extends CommentCreatedEvent {
    private Author object;

    public CommentToCommentCreatedEvent(CommentId commentId, CommentHost host, String content, Author author, CommentType commentType, Author object) {
        super(commentId, host, content, author, commentType);
        this.object = authorFrom(object);
    }

    public Author object() {
        return object;
    }
}
